//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.andromeda.androbench2;

import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteDatabase.CursorFactory;

public class DeviceDB extends SQLiteOpenHelper {
    public DeviceDB(Context var1, String var2, CursorFactory var3) {
        super(var1, "device.db", (CursorFactory)null, 2);
    }

    public void onCreate(SQLiteDatabase var1) {
        int var2 = (int)(1.0E8D * Math.random());
        var1.execSQL("create table device (_id INTEGER PRIMARY KEY AUTOINCREMENT, device_rnd INTEGER);");
        ContentValues var3 = new ContentValues();
        var3.put("device_rnd", var2);
        var1.insert("device", (String)null, var3);
    }

    public void onUpgrade(SQLiteDatabase var1, int var2, int var3) {
        var1.execSQL("drop table if exists device");
        this.onCreate(var1);
    }
}
